import request from '@/utils/request'

// 查询项目基本资料列表
export function listCurrent_project(query) {
  return request({
    url: '/business/current_project/list',
    method: 'get',
    params: query
  })
}

// 查询项目基本资料详细
export function getCurrent_project(projectId) {
  return request({
    url: '/business/current_project/' + projectId,
    method: 'get'
  })
}

// 新增项目基本资料
export function addCurrent_project(data) {
  return request({
    url: '/business/current_project',
    method: 'post',
    data: data
  })
}

// 修改项目基本资料
export function updateCurrent_project(data) {
  return request({
    url: '/business/current_project',
    method: 'put',
    data: data
  })
}

// 删除项目基本资料
export function delCurrent_project(projectId) {
  return request({
    url: '/business/current_project/' + projectId,
    method: 'delete'
  })
}

// 
export function getPersonProject(personId) {
  return request({
    url: '/business/current_project/getPersonProject/' + personId,
    method: 'get'
  })
}
